// vite.config.ts
import { defineConfig } from "file:///D:/01Flies/%E5%89%8D%E7%AB%AF%E5%AD%A6%E4%B9%A0/vue3_admin_template_bj/project/node_modules/.pnpm/vite@5.0.4_@types+node@18.18.13_sass@1.69.5/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/01Flies/%E5%89%8D%E7%AB%AF%E5%AD%A6%E4%B9%A0/vue3_admin_template_bj/project/node_modules/.pnpm/@vitejs+plugin-vue@4.5.0_vite@5.0.4_vue@3.3.9/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import { viteMockServe } from "file:///D:/01Flies/%E5%89%8D%E7%AB%AF%E5%AD%A6%E4%B9%A0/vue3_admin_template_bj/project/node_modules/.pnpm/vite-plugin-mock@2.9.6_mockjs@1.1.0_rollup@2.79.1_vite@5.0.4/node_modules/vite-plugin-mock/dist/index.js";
import { createSvgIconsPlugin } from "file:///D:/01Flies/%E5%89%8D%E7%AB%AF%E5%AD%A6%E4%B9%A0/vue3_admin_template_bj/project/node_modules/.pnpm/vite-plugin-svg-icons@2.0.1_vite@5.0.4/node_modules/vite-plugin-svg-icons/dist/index.mjs";
import path from "path";
var vite_config_default = defineConfig(({ command }) => {
  return {
    plugins: [
      vue(),
      createSvgIconsPlugin({
        iconDirs: [path.resolve(process.cwd(), "src/assets/icons")],
        symbolId: "icon-[dir]-[name]"
      }),
      viteMockServe({
        localEnabled: command === "serve"
        //保证开发阶段使用mock接口
      })
    ],
    resolve: {
      alias: {
        "@": path.resolve("./src")
        // 相对路径别名配置，使用 @ 代替 src
      }
    },
    //scss全局变量的配置
    css: {
      preprocessorOptions: {
        scss: {
          javascriptEnabled: true,
          additionalData: '@import "./src/styles/variable.scss";'
        }
      }
    }
  };
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZ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